Skip to content

Conversation

@barjin
Copy link
Contributor

@barjin barjin commented Oct 15, 2024

"Solves" misalignment on some pages with too little content.

Before:

obrazek

After:

Peek.2024-10-15.13-11.mp4

The issue persists on mid-size desktop (laptop) screens—the fixed-width styling can only be applied on large enough displays; otherwise, the content gets obscured on other pages with actual content.

The moving sidebar is caused by not having enough content (vertically).

@barjin barjin added the adhoc Ad-hoc unplanned task added during the sprint. label Oct 15, 2024
@barjin barjin self-assigned this Oct 15, 2024
@barjin
Copy link
Contributor Author

barjin commented Oct 15, 2024

I'm torn between merging and closing this as wontfix. A similar issue (although much bigger) was solved by #1216. This one is simply caused by not enough content (likely present in vanilla Docusaurus as well) and while having quite a simple solution, it adds extra complexity and yet another media query breakpoint to the already complex styling system for the docs.

@barjin barjin requested a review from B4nan October 15, 2024 11:26
@github-actions github-actions bot added this to the 100th sprint - Tooling team milestone Oct 15, 2024
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Oct 15, 2024
Comment on lines 450 to 454
@media (min-width: 1440px) {
.main-wrapper > div {
width: var(--max-layout-width);
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding width: 100%, without the media query? Looks good on my end locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, the tunnel vision is real 👀

width: 100% really does seem to work, desktops and mobile layouts alike. 👍🏽

@B4nan B4nan changed the title fix: fixed content width on wide displays fix: fix content width on pages without much content Oct 15, 2024
@B4nan B4nan merged commit 9ab3bc6 into master Oct 15, 2024
7 checks passed
@B4nan B4nan deleted the fix/fixed-width-wide branch October 15, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants